package com.zhumo.sz.entity.road;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 城市道路信息
 * id  INT主键id PRIMARY KEY
 * road_id BIGINT 道路唯一标识 PRIMARY KEY
 * road_name VARCHAR 道路名称
 * road_type VARCHAR 道路类型
 * build_year VARCHAR 通行年份
 * district_id VARCHAR 所属区域 FOREIGH KEY
 * district VARCHAR 区域名称
 * traffic_light_num BIGINT 红绿灯个数
 * sidewalk_num INT 人行横道个数
 * sidewalk_area DOUBLE 人行道面积
 * is_enabled TINYINT 是否可用
 * version VARCHAR 版本号
 * create_time DATETIME 创建时间
 * update_time DATETIME 更新时间
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "城市道路",description = "城市道路信息表")
public class CityRoad {


    @ApiModelProperty("主键id")
    private Long id;
    private String roadCode;
    private String roadName;
    private String roadType;

    @ApiModelProperty("朝向")
    private String toward;
    private String buildYear;
    private String districtId;
    private String district;
    private Integer trafficLightNum;
    private Integer sideWalkNum;
    private Double sideWalkArea;
    private Boolean isEnabled;
    private String version;
    private Timestamp createTime;
    private Timestamp updateTime;
}
